package com.zjs.vuegoodstype.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @author : zjs
 * @date : 2022/1/22 23:59
 * Description:
 */
@Data
public class VueGoodstype implements Serializable {

    private static final long serialVersionUID = 6544507938632162629L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /* 父id*/
    private Long pid;
    /* 类目名称*/
    private String typeName;
    /* 状态0-启用  -1-禁用*/
    private String state;
    /* 类目等级*/
    private String typeSort;

    @TableField(exist = false)
    private List<VueGoodstype> items = new ArrayList<>();
}
